package birdry.ui.components.navigation
{
	
	import flash.display.Sprite;
	import flash.display.MovieClip;
	import flash.display.DisplayObject;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import com.greensock.TweenNano;
	
	/**
	* ...
	* @author 
	*/
	public class AlphaMotion extends AMotionDefine implements IMotionDefine	{
		
		private var _speed:Number;
		private var _alpha:Number;
		
		override public function destroy(): void	{	
			_btArr = null;
			super.destroy();
		}
		
		override public function active(bt:*):void 		{
			var i:uint;
			if (!bt)	{
				for ( i = 0; i < _max; ++i)	{
					TweenNano.to( _btArr[i], _speed, { alpha:1 } );
				}
			}	else	{
				for ( i = 0; i < _max; ++i)	{
					if (_btArr[i] == bt)	{
						TweenNano.to( _btArr[i], _speed, { alpha:1 } );
					}	else	{
						TweenNano.to( _btArr[i], _speed, { alpha:_alpha } );
					}
				}
			}
		}
		
		public function AlphaMotion(speed:Number = 0.3, alpha:Number = 0.3)	{
			_speed = speed;
			_alpha = alpha;
			super();
		}
		
		
		
	}	// class
	
}	// package